package session;

import entity.Category;
import java.util.List;
import javax.ejb.Remote;

/**
 * Gestisce le transazioni con il DBMS per gli oggetti Category.
 *
 * @author Rachid Ouchary, Fabio Strocco, Max Passaghe, Marco Tansini.
 */
@Remote
public interface CategoryFacadeRemote {

    public void create(Category category);

    public void edit(Category category);

    public void remove(Category category);

    public Category find(Long id);

    public List<Category> findMainCategories();

    public List<Category> findAll();

    public List<Category> findRange(int[] range);

    public int count();

    public java.lang.String findCategoryVersion();

    public Category findCategoryById(String ebayId);
}
